﻿namespace OrderingFoot.Core
{
    /// <summary>
    /// 自定义业务异常，不记录异常日志
    /// </summary>
    public class BusinessException : Exception
    {
        /// <summary>
        /// 状态：0正常；非0异常
        /// </summary>
        public int Code { get; set; } = 2;

        /// <summary>
        /// ctor
        /// </summary>
        public BusinessException()
        {
        }

        /// <summary>
        /// ctor
        /// </summary>
        public BusinessException(string msg) : base(msg)
        {
        }
    }
}
